package net.maku.events.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 随手拍活动
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
@Data
@Schema(description = "随手拍活动")
public class ActivitySnapshotVO extends ActivityJoinOrgBaseVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "工会ID")
    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
    private Long orgId;

    @Schema(description = "主办方名称")
    private String orgName;

    @Schema(description = "活动标题")
    private String activityTitle;

    @Schema(description = "健步走背景图")
    private String activityBgImage;

    @Schema(description = "健步走Banner图")
    private String activityBanner;

    @Schema(description = "活动规则")
    private String activityRule;

    @Schema(description = "活动开始时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityStartTime;

    @Schema(description = "活动结束时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date activityEndTime;

    @Schema(description = "所得积分")
    private Double earningsPoints;

    @Schema(description = "活动状态  0：停用   1：正常")
    private Integer status;

    @Schema(description = "租户ID")
    private Long tenantId;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private LocalDateTime createTime;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private LocalDateTime updateTime;

    @Schema(description = "报名人数")
    private Integer joinNumber;

    @Schema(description = "活动状态")
    private Integer activityStatus;

    @Schema(description = "是否置顶")
    private Integer whetherTop;

    @Schema(description = "置顶图片")
    private String topImg;
}